<template>
  <div class="detail">
    <div class="warpper">
      <div class="detail-content">
        <div class="content-img">
          <img :src="decodeURIComponent($route.params.img)" alt="" />
        </div>
        <div class="detail-info">
          <p>
            <span class="person-name">{{ $route.params.name }}</span
            >服务价格：{{ $route.params.price }}
          </p>
          <hr />
          <p>年龄：{{ $route.params.age }}</p>
          <p>身高：{{ $route.params.height }}</p>
          <p>体重：{{ $route.params.weight }}</p>
          <p>手机号：{{ $route.params.phone }}</p>
          <p>备注：{{ $route.params.remark }}</p>
          <div class="auction">
            <button>登录后下单</button>
            <button>查看档期</button>
          </div>
        </div>
      </div>
      <div class="detail-footer">
        <p class="individual">个人简介</p>
        <p class="detail-desc">{{ $route.params.introduction }}</p>
      </div>
    </div>
    <Footer />
  </div>
</template>

<script>
import Footer from "../../components/Footer.vue";
export default {
  components: { Footer },
  name: "Details",
};
</script>

<style scoped lang="less" >
.detail-content {
  margin: 150px 0 20px;
  padding: 30px;
  overflow: hidden;
  border-top: 1px solid orange;
  border-bottom: 1px solid orange;

  .content-img {
    float: left;
  }
  .detail-info {
    padding: 0 20px;
    float: left;
    p {
      padding: 10px 0;
      span {
        font-size: 26px;
        font-weight: 600;
        padding-right: 20px;
      }
    }
    .phone {
      color: red;
    }
  }
  button {
    background: orange;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    outline: none;
    border: 0;
    margin: 0 10px;
  }
}
.detail-footer {
  padding: 20px;
  .individual {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
  }
  .detail-desc {
    text-indent: 2em;
  }
}
img {
  width: 280px;
  height: 360px;
}
</style>